.class public Les/dp0;
.super Ljava/lang/Object;
.source "ComprDataIO.java"


# instance fields
.field private final a:Les/vo0;

.field private b:J

.field private c:Z

.field private d:Z

.field private e:Ljava/io/InputStream;

.field private f:Ljava/io/OutputStream;

.field private g:Lde/innosystec/unrar/rarfile/g;

.field private h:J

.field private i:J

.field private j:J

.field private k:J


# direct methods
.method public constructor <init>(Les/vo0;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/dp0;->a:Les/vo0;

    return-void
.end method


# virtual methods
.method public a([BII)I
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lde/innosystec/unrar/exception/RarException;
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    :cond_0
    const/4 v2, -0x1

    if-lez p3, :cond_5

    .line 15
    iget-object v1, p0, Les/dp0;->a:Les/vo0;

    invoke-virtual {v1}, Les/vo0;->d()Les/k80;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Les/dp0;->a:Les/vo0;

    invoke-virtual {v1}, Les/vo0;->d()Les/k80;

    move-result-object v1

    invoke-interface {v1}, Les/j80;->a()Z

    move-result v1

    if-eqz v1, :cond_1

    return v2

    :cond_1
    int-to-long v3, p3

    .line 16
    iget-wide v5, p0, Les/dp0;->b:J

    cmp-long v1, v3, v5

    if-lez v1, :cond_2

    long-to-int v1, v5

    goto :goto_0

    :cond_2
    move v1, p3

    .line 17
    :goto_0
    iget-object v3, p0, Les/dp0;->e:Ljava/io/InputStream;

    invoke-virtual {v3, p1, p2, v1}, Ljava/io/InputStream;->read([BII)I

    move-result v1

    if-ltz v1, :cond_4

    .line 18
    iget-object v3, p0, Les/dp0;->g:Lde/innosystec/unrar/rarfile/g;

    invoke-virtual {v3}, Lde/innosystec/unrar/rarfile/g;->y()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 19
    iget-wide v3, p0, Les/dp0;->k:J

    long-to-int v4, v3

    invoke-static {v4, p1, p2, v1}, Les/yo0;->a(I[BII)I

    move-result v3

    int-to-long v3, v3

    iput-wide v3, p0, Les/dp0;->k:J

    .line 20
    :cond_3
    iget-wide v3, p0, Les/dp0;->h:J

    int-to-long v5, v1

    add-long/2addr v3, v5

    iput-wide v3, p0, Les/dp0;->h:J

    add-int/2addr v0, v1

    add-int/2addr p2, v1

    sub-int/2addr p3, v1

    .line 21
    iget-wide v3, p0, Les/dp0;->b:J

    sub-long/2addr v3, v5

    iput-wide v3, p0, Les/dp0;->b:J

    .line 22
    iget-object v3, p0, Les/dp0;->a:Les/vo0;

    invoke-virtual {v3, v1}, Les/vo0;->a(I)V

    .line 23
    iget-wide v3, p0, Les/dp0;->b:J

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-nez v7, :cond_5

    iget-object v3, p0, Les/dp0;->g:Lde/innosystec/unrar/rarfile/g;

    invoke-virtual {v3}, Lde/innosystec/unrar/rarfile/g;->y()Z

    move-result v3

    if-eqz v3, :cond_5

    .line 24
    iget-object v3, p0, Les/dp0;->a:Les/vo0;

    invoke-static {v3, p0}, Les/xo0;->a(Les/vo0;Les/dp0;)Z

    move-result v3

    if-nez v3, :cond_0

    return v2

    .line 25
    :cond_4
    new-instance p1, Ljava/io/EOFException;

    invoke-direct {p1}, Ljava/io/EOFException;-><init>()V

    throw p1

    :cond_5
    if-eq v1, v2, :cond_6

    goto :goto_1

    :cond_6
    move v0, v1

    :goto_1
    return v0
.end method

.method public a()J
    .locals 2

    .line 26
    iget-wide v0, p0, Les/dp0;->k:J

    return-wide v0
.end method

.method public a(J)V
    .locals 0

    .line 27
    iput-wide p1, p0, Les/dp0;->j:J

    return-void
.end method

.method public a(Lde/innosystec/unrar/rarfile/g;)V
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 8
    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/b;->e()J

    move-result-wide v0

    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/b;->c()S

    move-result v2

    int-to-long v2, v2

    add-long v6, v0, v2

    .line 9
    invoke-virtual {p1}, Lde/innosystec/unrar/rarfile/g;->o()J

    move-result-wide v0

    iput-wide v0, p0, Les/dp0;->b:J

    .line 10
    new-instance v0, Les/cp0;

    iget-object v1, p0, Les/dp0;->a:Les/vo0;

    .line 11
    invoke-virtual {v1}, Les/vo0;->q()Les/zo0;

    move-result-object v5

    iget-wide v1, p0, Les/dp0;->b:J

    add-long v8, v6, v1

    move-object v4, v0

    invoke-direct/range {v4 .. v9}, Les/cp0;-><init>(Les/zo0;JJ)V

    iput-object v0, p0, Les/dp0;->e:Ljava/io/InputStream;

    .line 12
    iput-object p1, p0, Les/dp0;->g:Lde/innosystec/unrar/rarfile/g;

    const-wide/16 v0, 0x0

    .line 13
    iput-wide v0, p0, Les/dp0;->h:J

    const-wide/16 v0, -0x1

    .line 14
    iput-wide v0, p0, Les/dp0;->k:J

    return-void
.end method

.method public a(Ljava/io/OutputStream;)V
    .locals 2

    .line 1
    iput-object p1, p0, Les/dp0;->f:Ljava/io/OutputStream;

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Les/dp0;->b:J

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Les/dp0;->c:Z

    .line 4
    iput-boolean p1, p0, Les/dp0;->d:Z

    .line 5
    iput-wide v0, p0, Les/dp0;->i:J

    iput-wide v0, p0, Les/dp0;->h:J

    const-wide/16 v0, -0x1

    .line 6
    iput-wide v0, p0, Les/dp0;->k:J

    iput-wide v0, p0, Les/dp0;->j:J

    const/4 p1, 0x0

    .line 7
    iput-object p1, p0, Les/dp0;->g:Lde/innosystec/unrar/rarfile/g;

    return-void
.end method

.method public b()Lde/innosystec/unrar/rarfile/g;
    .locals 1

    .line 8
    iget-object v0, p0, Les/dp0;->g:Lde/innosystec/unrar/rarfile/g;

    return-object v0
.end method

.method public b([BII)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-boolean v0, p0, Les/dp0;->c:Z

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Les/dp0;->f:Ljava/io/OutputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V

    .line 3
    :cond_0
    iget-wide v0, p0, Les/dp0;->i:J

    int-to-long v2, p3

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/dp0;->i:J

    .line 4
    iget-boolean v0, p0, Les/dp0;->d:Z

    if-nez v0, :cond_2

    .line 5
    iget-object v0, p0, Les/dp0;->a:Les/vo0;

    invoke-virtual {v0}, Les/vo0;->s()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 6
    iget-wide v0, p0, Les/dp0;->j:J

    long-to-int p2, v0

    int-to-short p2, p2

    invoke-static {p2, p1, p3}, Les/yo0;->a(S[BI)S

    move-result p1

    int-to-long p1, p1

    iput-wide p1, p0, Les/dp0;->j:J

    goto :goto_0

    .line 7
    :cond_1
    iget-wide v0, p0, Les/dp0;->j:J

    long-to-int v1, v0

    invoke-static {v1, p1, p2, p3}, Les/yo0;->a(I[BII)I

    move-result p1

    int-to-long p1, p1

    iput-wide p1, p0, Les/dp0;->j:J

    :cond_2
    :goto_0
    return-void
.end method

.method public c()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/dp0;->j:J

    return-wide v0
.end method
